<link rel="stylesheet" type="text/css" href="<?php echo $this->CSS_PATH; ?>developer.css" />
<div class="blog_bg"></div>
<div class="title_text"> <img src="<?php echo $this->IMAGE_KHT_PATH; ?>khotoot_title.png" alt="Khotoot Is A Digital Graphic Design Company" /> </div>


<div class="blog_container">
	
	 <div class="recent_post">
            	<div class="title_text">Recent Posts</div>
                <?php foreach($this->recentData as $_rkey =>$rvalue):?>
                <div class="recent_post_block">
                        <a href="<?php echo $this->url(array("module" => "default", "controller" => "blog", "action" => "blogdetail" ,"blog_id" => $rvalue['blog_id']), null, TRUE); ?>">
                        <span class="default_ico"><img src="<?php echo $this->IMAGE_KHT_PATH; ?>post_ico.png" alt="" /></span>
                        <span class="recent_post_title"><?php echo $rvalue['blog_title'];?></span>
                        <span class="recent_post_content"><?php echo substr($rvalue['blog_shortdescription'],0,100);?></span>
			</a>
                </div>
                <?php endforeach;?>
                
                
            </div>
            
        	<div class="blog_listing">
            
            	<div class="post_block">
                	<div class="post_title"><?php echo $this->blogData[0]['blog_title'];?></div>
                    <div class="post_info">
                    	<div class="post_date"><?php echo date('M d , Y',strtotime($this->blogData[0]['blog_createddate']));?></div>
                        <div class="post_comment"><?php echo $this->blogData[0]['comment_count'];?> Comments</div>
                    </div>
                    <div class="post_content">
                    	<p><?php echo $this->blogData[0]['blog_description'];?></p>
                    </div>
                    
                    <div class="share_on">
                        <ul>
                            <li><span>Share</span></li>
                            <li class="twitter"><a href="#">Twitter</a></li>
                            <li class="facebook"><a href="#">Facebook</a></li>
                        </ul>
                        <div class="clear"></div>
                    </div>
                    
                </div>
                
                <!-- Start Comment Block -->
                <div class="comment_form_block">
                    <?php echo $this->flashmessages(); ?>
                    <?php if ($this->successmessage != ""): ?>
                    <div class="alert alert-success">
                        <i class="icon-ok-sign"></i> <?php echo $this->successmessage; ?>
                    </div>
                <?php endif; ?>

                <?php if (count($this->errorMessage) > 0): ?>
                    <div class="alert alert-danger">
                        <?php foreach ($this->errorMessage as $erroValue): ?>

                            <div class="text-left" >
                                <i class="icon-remove-sign"></i>
                                <?php echo $erroValue; ?>
                            </div>

                        <?php endforeach; ?>
                    </div>
                <?php endif; ?>
                    
                    <h3>Leave a Comment</h3>
                    <form method="post" name="" action="">
                        <div class="form_row">
                            <input type="text" id="1" class="text_block" value="Name:" name="name" onblur="if (this.value == '') {this.value = 'Name:';}" onfocus="if (this.value == 'Name:') {this.value = '';}">
                        </div>
                        <div class="form_row">
                            <input type="text" id="2" class="text_block" value="Email:" name="email" onblur="if (this.value == '') {this.value = 'Email:';}" onfocus="if (this.value == 'Email:') {this.value = '';}">
                        </div>
                        <div class="form_row">
                            <input type="text" id="3" class="text_block" value="Contact no:" name="mobile" onblur="if (this.value == '') {this.value = 'Contact no:';}" onfocus="if (this.value == 'Contact no:') {this.value = '';}">
                        </div>
                        <div class="form_row">
                            <textarea class="text_area" name="message" id="4"></textarea>
                        </div>
                        <div class="form_row">
                            <input type="submit" id="submit" class="submit_btn" value="submit" name="submit">
                        </div>                            
                    </form>
                </div>
                <!-- End Comment Block -->
                
                <div class="post_nav">
                    
                    <?php 
                    
                    if($this->prev_blogid['prev_id'] != ''):?>
                    <a class="btn_left" href="<?php echo $this->url(array("module" => "default", "controller" => "blog", "action" => "blogdetail" ,"blog_id" => $this->prev_blogid), null, TRUE); ?>"><img src="<?php echo $this->IMAGE_KHT_PATH; ?>older_btn.png" alt="" /></a>
                    <?php endif;?>
                    <?php if($this->next_blogid['next_id'] != ''):?>
                    <a class="btn_right" href="<?php echo $this->url(array("module" => "default", "controller" => "blog", "action" => "blogdetail" ,"blog_id" => $this->next_blogid), null, TRUE); ?>"><img src="<?php echo $this->IMAGE_KHT_PATH; ?>next_btn.png" alt="" /></a>
                    <?php endif;?>
                    <div class="clear"></div>
                </div>
                
            </div>
			
            <div class="clear"></div>
	
</div>
<!-- End Blog Container -->

